package com.usian.service;

import com.usian.mappers.EtcMapper;
import com.usian.pojo.Etc;
import com.usian.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EtcService {
    @Autowired
    private EtcMapper etcMapper;

    public List<Role> findRole() {
       return etcMapper.findRole();
    }

    public void add(Etc etc) {
        etcMapper.insert(etc);
    }

    public void del(Integer id) {
        etcMapper.del(id);
    }

    public Etc findOne(Integer id) {
      return   etcMapper.findOne(id);
    }

    public void up(Etc etc) {
        etcMapper.up(etc);
    }
}
